<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:95:"/Applications/MAMP/htdocs/CampusReservations/public/../application/home/view/user/editinfo.html";i:1503020170;s:95:"/Applications/MAMP/htdocs/CampusReservations/public/../application/home/view/Public/header.html";i:1499667974;s:92:"/Applications/MAMP/htdocs/CampusReservations/public/../application/home/view/Public/nav.html";i:1503451177;s:96:"/Applications/MAMP/htdocs/CampusReservations/public/../application/home/view/Public/usernav.html";i:1503019197;s:95:"/Applications/MAMP/htdocs/CampusReservations/public/../application/home/view/Public/footer.html";i:1499567500;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
<title>Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/safe/css.css" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/safe/common.min.css" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/safe/ms-style.min.css" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/safe/personal_member.min.css" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/safe/Snaddress.min.css" />
<link rel="stylesheet" href="__PUBLIC__/static/user/UCenter/css/sui.css" />

<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="__PUBLIC__/static/home/css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="__PUBLIC__/static/home/css/bootstrapmoban458.css" rel='stylesheet' type='text/css' />

<link href="__PUBLIC__/static/home/css/style.css" rel='stylesheet' type='text/css' />	
<link href="__PUBLIC__/static/home/css/styleMoban458.css" rel='stylesheet' type='text/css' />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/home/css/styles.css">

<!-- 图片浮动 -->
<link rel="stylesheet" href="__PUBLIC__/static/home/css/s.css">

<script type="text/javascript" src="__PUBLIC__/static/home/js/koala.min.1.5.js"></script>
<script type="text/javascript">
Qfast.add('widgets', { path: "__PUBLIC__/static/home/js/terminator2.2.min.js", type: "js", requires: ['fx'] });  
Qfast(false, 'widgets', function () {
	K.tabs({
		id: 'decoroll2',//焦点图包裹id  
		conId: "decoimg_a2",//大图域包裹id  
		tabId:"deconum2",//小圆点数字提示id
		tabTn:"a",
		conCn: '.decoimg_b2',//大图域配置class       
		auto: 1,//自动播放 1或0
		effect: 'fade',//效果配置
		eType: 'mouseover',// 鼠标事件
		pageBt:true,//是否有按钮切换页码
		bns: ['.prev', '.next'],//前后按钮配置class                          
		interval: 3000// 停顿时间  
	}) 
}) 
</script>


<script src="__PUBLIC__/static/home/js/jquery-1.11.1.min.js"></script>
<script src="__PUBLIC__/static/home/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/static/home/js/modernizr.custom.js"></script>
<script src="__PUBLIC__/static/home/js/responsiveslides.min.js"></script>
<!-- animation-effect -->
<link href="__PUBLIC__/static/home/css/animate.min.css" rel="stylesheet"> 
<script src="__PUBLIC__/static/home/js/wow.min.js"></script>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<script>
 new WOW().init();
</script>
<!-- //animation-effect -->
<style type="text/css">
	@font-face{
  font-family: 'miaomi';

  src:url( 'fonts/miaomi.ttf') format('truetype');
}

.login li a {
    
    display: block;
    height: 22px; 
    -webkit-transition: .5s all;
    transition: .5s all;
    -moz-transition: .5s all;
    padding: 0;
}

.miaomi{
	font-family: 'miaomi';
}
body{
	font-family: 'miaomi';
	font-weight: bold;
}
ul.real-widget li a {
    font-size: 15px;
    color: #000;
}

.login li{
	float: left;
	list-style: none;
	margin-top: 10px;
	margin-left: 10px;
}

.login li a:hover{
	-webkit-transform:rotateY(360deg);
	transform:rotateY(360deg);
	-moz-transform:rotateY(360deg);
	-o-transform:rotateY(360deg);
	-ms-transform:rotateY(360deg);
}

#link-effect-7 a{
    font-family: 'miaomi';
    font-size: 18px;
}

h2,h4{
	font-family: 'miaomi';
}

.key a {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    padding: 0.6em 2em;
    background: #fa4b2a;
}
.key a:hover{
	background:#fff;
	color: #fa4b2a;
	border: 1px solid #fa4b2a;

}
.key{
	float: right;
	margin-top: -25px;

}


</style>


<link rel="stylesheet" href="__PUBLIC__/static/login/css/common.css"/>

<script type="text/javascript" src="__PUBLIC__/static/login/js/jquery.min.js"></script>
<script type="text/javascript">
var w,h,className;
function getSrceenWH(){
	w = $(window).width();
	h = $(window).height();
	$('#dialogBg').width(w).height(h);
}

window.onresize = function(){  
	getSrceenWH();
}  
$(window).resize();  

$(function(){
	getSrceenWH();
	
	//ÏÔÊ¾µ¯¿ò
	$('.box a').click(function(){
		className = $(this).attr('class');
		$('#dialogBg').fadeIn(300);
		$('#dialog').removeAttr('class').addClass('animated '+className+'').fadeIn();
	});
	
	//¹Ø±Õµ¯´°
	$('.claseDialogBtn').click(function(){
		$('#dialogBg').fadeOut(300,function(){
			$('#dialog').addClass('bounceOutUp').fadeOut();
		});
	});
});


var w1,h1,className1;
function getSrceenWH1(){
	w = $(window).width();
	h = $(window).height();
	$('#dialogBg1').width(w1).height(h1);
}

window.onresize = function(){
	getSrceenWH1();
}
$(window).resize();

$(function(){
	getSrceenWH1();

	//ÏÔÊ¾µ¯¿ò
	$('.box1 a').click(function(){
		className = $(this).attr('class');
		$('#dialogBg1').fadeIn(300);
		$('#dialog1').removeAttr('class').addClass('animated '+className+'').fadeIn();
	});

	//¹Ø±Õµ¯´°
	$('.claseDialogBtn1').click(function(){
		$('#dialogBg1').fadeOut(300,function(){
			$('#dialog1').addClass('bounceOutUp').fadeOut();
		});
	});
});


var w2,h2,className2;
function getSrceenWH2(){
	w = $(window).width();
	h = $(window).height();
	$('#dialogBg2').width(w2).height(h2);
}

window.onresize = function(){
	getSrceenWH2();
}
$(window).resize();

$(function(){
	getSrceenWH2();

	//ÏÔÊ¾µ¯¿ò
	$('.box2 a').click(function(){
		className = $(this).attr('class');
		$('#dialogBg2').fadeIn(300);
		$('#dialog2').removeAttr('class').addClass('animated '+className+'').fadeIn();
	});

	//¹Ø±Õµ¯´°
	$('.claseDialogBtn2').click(function(){
		$('#dialogBg2').fadeOut(300,function(){
			$('#dialog2').addClass('bounceOutUp').fadeOut();
		});
	});
});

var w3,h3,className3;
function getSrceenWH3(){
	w = $(window).width();
	h = $(window).height();
	$('#dialogBg3').width(w3).height(h3);
}

window.onresize = function(){
	getSrceenWH3();
}
$(window).resize();

$(function(){
	getSrceenWH3();

	//ÏÔÊ¾µ¯¿ò
	$('.box3 a').click(function(){
		className = $(this).attr('class');
		$('#dialogBg3').fadeIn(300);
		$('#dialog3').removeAttr('class').addClass('animated '+className+'').fadeIn();
	});

	//¹Ø±Õµ¯´°
	$('.claseDialogBtn3').click(function(){
		$('#dialogBg3').fadeOut(300,function(){
			$('#dialog3').addClass('bounceOutUp').fadeOut();
		});
	});
});

var w4,h4,className4;
function getSrceenWH4(){
	w = $(window).width();
	h = $(window).height();
	$('#dialogBg4').width(w4).height(h4);
}

window.onresize = function(){
	getSrceenWH4();
}
$(window).resize();

$(function(){
	getSrceenWH4();

	//ÏÔÊ¾µ¯¿ò
	$('.box4 a').click(function(){
		className = $(this).attr('class');
		$('#dialogBg4').fadeIn(300);
		$('#dialog4').removeAttr('class').addClass('animated '+className+'').fadeIn();
	});

	//¹Ø±Õµ¯´°
	$('.claseDialogBtn4').click(function(){
		$('#dialogBg4').fadeOut(300,function(){
			$('#dialog4').addClass('bounceOutUp').fadeOut();
		});
	});
});
</script>

</script>





<style>
    body {
        background: #f5f5f5;

    }
    
      .sui-table th{
        padding: 16px 8px;
        line-height: 18px;
        text-align: center;
        vertical-align: middle;
        border-top: 1px solid #e6e6e6;
        font-weight: normal;
        font-size: 14px;
        color: #333333;
       }
       .sui-table td {
        padding: 16px 8px;
        line-height: 18px;
        text-align: center;
        vertical-align: middle;
        border-top: 1px solid #e6e6e6;
        font-weight: normal;
        font-size: 12px;
        color: #333333;
       }
    }
  img {
      max-width: 100%;
      height: auto;
      /*vertical-align: bottom;*/
      border: 0;
      -ms-interpolation-mode: bicubic;
      margin-left: -10px;
  }
a{
  color: #000000;
}
    </style>
</head>

<body>

<!-- <script>

    function login(){
        var mobilenum = $('input[name="mobilenum"]').val();
       var userpass = $('input[name="userpass"]').val();
       var captcha = $('input[name="captcha"]').val();
       var url =  $('input[name="log"]').val();
       $.ajax({
           type : "POST",
            url : url,
            data : {moblienum:$mobilenum,userpass:$userpass,captcha:captcha},
            dataType : 'json',
            success : function(res) {
                if(res.status == 1){
                    alert(res.info);
                    window.location.href = res.url;
                }else{
                    alert(res.info);
                }
            }

        })
	}
</script> -->
<div class="header" id="ban">
		<div class="container">
		  <div>
	       <img src="__PUBLIC__/static/home/images/logo.png">
          </div>
			<div class="head-left wow fadeInLeft animated animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInLeft; margin-top: -70px;margin-left: 700px;">
				<div class="header-search">
						<div class="search">
							<input class="search_box" type="checkbox" id="search_box">
							<label class="icon-search" for="search_box"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></label>
							<div class="search_form">
								<form action="#" method="post">
									<input type="text" name="Search" placeholder="吃点啥...." style="background: #d8d5d5;border: 1px solid #d8d5d5;">
									<input type="submit" value="搜索" style="background: #f74a2a;border: 1px solid #f74a2a;"></a>
								</form>
							</div>
						</div>
				</div>
			</div>
			<div class="header_right wow fadeInLeft animated animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInLeft;margin-top: -60px;margin-left: 850px;width: 1000px;">
			<nav class="navbar navbar-default">
				<!-- Brand and toggle get grouped for better mobile display -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>

				<!-- Collect the nav links, forms, and other content for toggling -->
				<div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
					<nav class="link-effect-7" id="link-effect-7">
						<ul class="nav navbar-nav">
							<li class="active act"><a href="<?php echo url('Index/index'); ?>">主页</a></li>
							<li><a href="<?php echo url('Shop/lists'); ?>">餐厅饭馆</a></li>
							<!-- <li><a href="<?php echo url('User/userinfo'); ?>">餐厅饭馆</a></li> -->
							<!-- <li><a href="<?php echo url('User/shoppingcart'); ?>">购物车</a></li> -->
						</ul>
					</nav>
				</div>
				<!-- /.navbar-collapse -->
			</nav>
			</div>

			<div id="social-icons" style="position:relative; float: right;margin-top: -60px;display:inline;" >

<!--<script type="text/javascript">-->
 <div id="wrapper" >
<div class="box" style="display: inline-block;">
<?php if(\think\Session::get('id') == null): ?>
<li><a href="#" class="rollIn" style="font-family: miaomi ;font-weight: bold;font-size: 15px">登录</a>
		</li>
		<?php else: ?>
		<li><a href="<?php echo url('User/userinfo'); ?>" class="rollIn" style="font-family: miaomi;font-weight: bold;font-size: 15px"><?php echo \think\Session::get('username'); ?></a>
		</li>
		  
<?php endif; ?>
	<div id="dialogBg"></div>
		<div id="dialog" class="animated">
			<div class="dialogTop">
				<a href="#" style="font-size: 20px; margin-right: 20px;font-family: miaomi;float: left;">Hi~咱们又见面了</a>
				<a href="javascript:;" class="claseDialogBtn" style="font-size: 15px; font-family: miaomi;">关闭</a>
			</div>
			<form action="<?php echo url('Login/login'); ?>" method="post" id="editForm">
				<ul class="editInfos" style="font-family: miaomi;">
					<li><input type="text" name="mobilenum"   value="" class="ipt" style="width: 200px;" placeholder="手机号码" required  /></li>
					<li><input type="password" name="userpass"  value="" class="ipt" style="width: 200px;" placeholder="密码" required  /></li>
					<li><input type="text" name="captcha"   class="ipt" style="width: 200px;" placeholder="验证码" required />
					<img src="<?php echo captcha_src(); ?>" alt="captcha" onclick="this.src='<?php echo captcha_src(); ?>'" style="height: 50px;margin-top: 20px;" /></li>
					<li><button type="submit" class="submitBtn" onclick="login()">登录</button></li>
					<li><checkbox type="submit" name="check" value="1"></checkbox></li>
					<input type="hidden" value="<?php echo url('Login/login'); ?>" name="log"  />
				</ul>
			</form>
		</div>    
	</div>
	<div class="box1" style="display: inline-block">
		<?php if(\think\Session::get('id') == null): ?>
		<li><a href="#" class="bounceIn" style="font-family: miaomi ;font-weight: bold;font-size: 15px;">注册</a></li>
		<?php else: ?>
		<div class="media-left response-text-left" style="width: 50px;">
                                    <a href="<?php echo url('User/userinfo'); ?>">
                     <img src="__PUBLIC__/static/home/uploads/userpic/<?php echo \think\Session::get('pic'); ?>" class="img-responsive"
                                             alt="" style="height: 40px;width: 40px;">
                                    </a>
                                   
                                </div>
		<?php endif; ?>
		<div id="dialogBg1"></div>
		<div id="dialog1" class="animated1">
			<div class="dialogTop">
			    <a href="#" style="font-size: 20px; margin-right: 20px;font-family: miaomi;float: left;">快来加入我们吧</a>
				<a href="javascript:;" class="claseDialogBtn1" style="font-size: 15px; font-family: miaomi;">关闭</a>
			</div>
			<form action="<?php echo url('User/adduser'); ?>" method="post" id="editForm1" enctype="multipart/form-data">
			  <ul class="editInfos" style="font-family: miaomi;">
				 <!-- <li><label><font color="#ff0000">* </font>手&nbsp机&nbsp号&nbsp
				 <input type="text" name="telephone" pattern="[0-9]{11}" required id="telephone" onblur="checkTele()"  class="ipt" />
				 <span id="tip" ></span></label></li>
					<li><label><font color="#ff0000">* </font>邮&nbsp&nbsp&nbsp&nbsp&nbsp箱&nbsp<input type="text" name="" required value="" class="ipt" /></label></li>
					<li><label><font color="#ff0000">* </font>用&nbsp户&nbsp名&nbsp<input type="text" name="" required value="" class="ipt" /></label></li>
					<li><label><font color="#ff0000">* </font>密&nbsp&nbsp&nbsp&nbsp&nbsp码&nbsp<input type="text" name="" required value="" class="ipt" /></label></li>
					<li><label><font color="#ff0000">* </font>确认密码<input type="text" name="" required value="" class="ipt" /></label></li> -->
					<li><input type="text" name="username" value="" class="ipt" style="width: 200px;" placeholder="用户名" required  /></li>
					<li><input type="password" name="userpass" value="" class="ipt" style="width: 200px;" placeholder="密码" required  /></li>
					<li><input type="password" name="userpass1" value="" class="ipt" style="width: 200px;" placeholder="确认密码" required  /></li>
					<li><input type="text" name="mobilenum" value="" class="ipt" style="width: 200px;" placeholder="手机号" required  /></li>
				    <li><input type="text" name="address" value="" class="ipt" style="width: 200px;" placeholder="送餐地址" required  /></li>
					<li><input type="text" name="email" value="" class="ipt" style="width: 200px;" placeholder="邮箱" required  /></li>
					<li style="margin-left: 40px" class="file">
                    <input type="file" name="pic" class="ipt" style="width: 200px;" title="头像"  /></li>
				  <li><input type="text" name="comment" value="" class="ipt" style="width: 200px;" placeholder="备注"  /></li>
					<li><input type="text" name="captcha"  class="ipt" style="width: 200px;" placeholder="验证码" required />
					<img src="<?php echo captcha_src(); ?>" alt="captcha" onclick="this.src='<?php echo captcha_src(); ?>'" style="height: 50px;margin-top: 20px;" /></li>
                  <li><button type="submit" class="submitBtn">注册</button></li>
				</ul>
			</form>
		</div>
	</div>


	



</div> 
<div class="clearfix"> </div>	

						
					
						
					</ul>
				</div>
			
			<div class="clearfix"> </div>	
		</div>
	</div>

<div class="side-neck" style="margin-top: 168px;margin-left: 80px;">
            <i></i>
          </div>
          <div class="ms-side" style="margin-top: 60px;margin-left: 78px;">
            <article class="side-menu side-menu-off">
              <dl class="side-menu-tree" style="padding-left: 50px;font-family: miaomi;font-weight: bold;">
                
                <dt><img src="__PUBLIC__/static/user/UCenter/img/左侧/我的买啦.png"  style="margin-right: 10px;margin-left: -20px;"/>个人中心</dt>
                <dd>
                  <a href="<?php echo url('User/orderlists'); ?>">我的订单</a>
                </dd>
                <dd>
                  <a href="<?php echo url('User/commentlists'); ?>">我的评论</a>
                </dd>
                 <dd>
                  <a href="">花销统计</a>
                </dd>
                <dt><img src="__PUBLIC__/static/user/UCenter/img/左侧/sc.png"  style="margin-right: 7px;margin-left: -23px; width: 17px;height: 17px"/>我的喜好</dt>
                <dd>
                  <a href="">我最爱的餐厅</a>
                </dd>
                <dd>
                  <a href="">我最爱的菜品</a>
                </dd>
                <dt><img src="__PUBLIC__/static/user/UCenter/img/左侧/set.png"  style="margin-right: 10px;margin-left: -23px;width: 17px;height: 17px"/>设置</dt>
                <dd>
                  <a href="<?php echo url('User/userinfo'); ?>">个人资料</a>
                </dd>
                  <dd>
                      <a href="<?php echo url('Login/logout'); ?>">退出</a>
                  </dd>
              </dl>

              <a ison="on" class="switch-side-menu icon-up-side"><i></i></a>
            </article>
          </div>
 <div id="ms-center" class="personal-member" style="margin-top: -19px;margin-left: 100px">
      <div class="cont">
        
        <form  method="post"  action="<?php echo url('doUpdate'); ?>"  enctype="multipart/form-data"  >
        <input type="hidden" name="id" value="<?php echo $userinfo['id']; ?>" >
            <div class="cont-main" >
          <div style="margin-left:20px;padding-top: 45px;">

           <div class="main-wrap" style="width: 950px;font-family: miaomi;font-size: 18px;">
            <h3>
                          <strong>编辑个人信息</strong>
                      </h3>
            <div class="user-profile clearfix">
              <div class="user-profile-wrap">
                  <?php if($userinfo['pic'] != ''): ?>
                  <div class="profile-avatar">
                    <img src="__PUBLIC__/static/home/uploads/userpic/<?php echo $userinfo['pic']; ?>" height="150" width="130">
                  <!-- <a href="#" name="">编辑头像</a>  -->
                  </div>
                  <?php else: endif; ?>
              </div>
              <div class="profile-info">
                <div class="control-group clearfix ">
                  <div class="controls lh26">
                    <label class="control-label"><em>*</em><span style="margin-left: 10px;">用户名:</span> 
                    <input  type="hidden" name="uid" value="<?php echo $userinfo['id']; ?>">
                      <input  style="margin-left: 10px;height: auto;width: auto;" type="text" name="username" class="text" value="<?php echo $userinfo['username']; ?>">
                      <!-- <img src="__PUBLIC__/UCenter/img/success.png " /><span style="margin-left: 10px;">一旦完善成功,不能修改</span> -->
                  </div>
                  <div style="margin-top: 70px;position: absolute;">
                  
                     <label class="control-label"><span style="float: left;margin-right: 5px;">上传头像:</span> <input  style="margin-left: 10px;" type="file" value="" name="pic"  >
                  </div>
                </div>
              </div>
            </div>
            <div class=" tab-switch personal-wrap-show" style="margin-top: 30px">
                 <div class="control-group clearfix">
                  <label class="control-label"><em>*&nbsp;</em>邮箱：</label>
                  <div class="controls">
                    <input  type="text" class="text" name="email" value="<?php echo $userinfo['email']; ?>" style="height: auto;width: auto;">
                  </div>
                </div>

                <div class="control-group clearfix">
                  <label class="control-label"><em>*&nbsp;</em>手机号：</label>
                  <div class="controls">
                    <input  type="text" class="text" name="mobilenum" value="<?php echo $userinfo['mobilenum']; ?>" style="height: auto;width: auto;">
                  </div>
                </div>

                <div class="control-group clearfix">
                  <label class="control-label"><em>*&nbsp;</em>送餐地址：</label>
                  <div class="controls">
                    <textarea name="address"> <?php echo $userinfo['address']; ?></textarea>
                  </div>
                </div>

                <div class="control-group clearfix">
                  <label class="control-label"><em>*&nbsp;</em>备注：</label>
                  <div class="controls">
                    <textarea name="comment"><?php echo $userinfo['comment']; ?></textarea>
                  </div>
                </div>

                <div class="control-group clearfix priority-low">
                  <label class="control-label">&nbsp;</label>
                  <div style="float:left;">
                    <!-- <a href=""  class="ms-stand-btn1" >保 存</a> -->
                    <input type="submit" value="保存" class="ms-stand-btn1" style="font-family: miaomi;font-size: 18px;">
                  </div>
                  <div id="" class="error-place"></div>
                  <div class="error-place mt29"></div>
                </div>
         
            </div>
          </div>
        </div>
     </form>     
              
           
          </div>
        </div>
        
      </div>
    </div>
    </div>
    <div class="clear "></div>

</div>

<div class="copyright">
				<div class="container">
					<p>Copyright &copy; 2016.Company name All rights reserved.</p>
				</div>
</div>

</body>
</html>